﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/HomeSite.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<TimeTableManagement.Entities.Tb_Slot_Room>>" %>

<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>

<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="100%" 
        CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
        GroupBoxCaptionOffsetY="-28px" 
        SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
        <ContentPaddings Padding="14px" />
        <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
<table class="tableview">
    <tr class="tableheader">
        <th class="tablecell">
            Room
        </th>
        <th class="tablecell">
            Slot
        </th>
        <th class="tablecell">
            Action
        </th>
        <th class="tablecell">
            Date
        </th>
        <th class="tablecell"></th>
    </tr>

<% int i = 0; foreach (var item in Model)
   {
       i++; %>
        <% if (i % 2 != 0)
          { %>
    <tr style="background-color:#EFF3FB;">
    <% }
                  else
                  { %>
    <tr style="background-color:White;">
    <% } %>
        <td class="tablecell">
            <%: Html.DisplayFor(modelItem => item.Tb_Room.name) %>
        </td>
        <td class="tablecell">
            <%: Html.DisplayFor(modelItem => item.Tb_Slot.slot) %>
        </td>
        <td class="tablecell">
            <%: Html.DisplayFor(modelItem => item.action) %>
        </td>
        <td class="tablecell">
            <%: Html.DisplayFor(modelItem => item.date) %>
        </td>
        <td class="tablecell">
            <a href="/Schedule/Edit/ <%: item.id %>">Edit</a> |
            <a href="/Schedule/Details/ <%: item.id %>">Details</a> |
            <a href="/Schedule/Delete/ <%: item.id %>">Delete</a>
        </td>
    </tr>
<% } %>

</table>

</dx:PanelContent>
</PanelCollection>
    </dx:ASPxRoundPanel>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="leftmenu" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="menuright" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="Footer" runat="server">
</asp:Content>
